#
# Be sure to run `pod lib lint CoreCode.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'CoreCode'
  s.version          = '1.0.0'
  s.summary          = '工具类集合 CoreCode'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
  一个简单封装的工具类集合
                       DESC

  s.homepage         = 'https://gitee.com/clh2046_admin/CoreCode'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'clh2046@163.com' => 'clh2046@163.com' }
  s.source           = { :git => 'https://gitee.com/clh2046_admin/CoreCode.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'

  s.source_files = 'CoreCode/Classes/Core{Code,Macros}.h'
  s.public_header_files = 'CoreCode/Classes/Core{Code,Macros}.h'
  
  # s.resource_bundles = {
  #   'CoreCode' => ['CoreCode/Assets/*.png']
  # }
   
   s.subspec 'Alert' do |alert|
       alert.source_files = 'CoreCode/Classes/Alert/**/*'
       alert.public_header_files = 'CoreCode/Classes/Alert/**/*.h'
   end
   
   s.subspec 'ArchiveData' do |archiveData|
       archiveData.source_files = 'CoreCode/Classes/ArchiveData/**/*'
       archiveData.public_header_files = 'CoreCode/Classes/ArchiveData/**/*.h'
       archiveData.dependency 'CoreCode/FileUtility'
   end
   
   s.subspec 'Authorization' do |authorization|
       authorization.source_files = 'CoreCode/Classes/Authorization/**/*'
       authorization.public_header_files = 'CoreCode/Classes/Authorization/**/*.h'
   end
   
   s.subspec 'AutoLayoput' do |authorization|
       authorization.source_files = 'CoreCode/Classes/AutoLayoput/**/*'
       authorization.public_header_files = 'CoreCode/Classes/AutoLayoput/**/*.h'
   end
   
   s.subspec 'Button' do |button|
       button.source_files = 'CoreCode/Classes/Button/**/*'
       button.public_header_files = 'CoreCode/Classes/Button/**/*.h'
       button.dependency 'CoreCode/Runtime'
   end
   
   s.subspec 'Calendar' do |calendar|
       calendar.source_files = 'CoreCode/Classes/Calendar/**/*'
       calendar.public_header_files = 'CoreCode/Classes/Calendar/**/*.h'
   end
   
   s.subspec 'Color' do |color|
       color.source_files = 'CoreCode/Classes/Color/**/*'
       color.public_header_files = 'CoreCode/Classes/Color/**/*.h'
   end
   
   s.subspec 'CoreJSONUtil' do |coreJSONUtil|
       coreJSONUtil.source_files = 'CoreCode/Classes/CoreJSONUtil/**/*'
       coreJSONUtil.public_header_files = 'CoreCode/Classes/CoreJSONUtil/**/*.h'
   end
   
   s.subspec 'Date' do |date|
       date.source_files = 'CoreCode/Classes/Date/**/*'
       date.public_header_files = 'CoreCode/Classes/Date/**/*.h'
       date.dependency 'CoreCode/Safe'
   end
   
   s.subspec 'Runtime' do |runtime|
       runtime.source_files = 'CoreCode/Classes/Runtime/**/*'
       runtime.public_header_files = 'CoreCode/Classes/Runtime/**/*.h'
   end
   
   s.subspec 'DeadtimeTimer' do |deadtimeTimer|
       deadtimeTimer.source_files = 'CoreCode/Classes/DeadtimeTimer/**/*'
       deadtimeTimer.public_header_files = 'CoreCode/Classes/DeadtimeTimer/**/*.h'
   end
   
   s.subspec 'DeadtimeTimer' do |deadtimeTimer|
       deadtimeTimer.source_files = 'CoreCode/Classes/DeadtimeTimer/**/*'
       deadtimeTimer.public_header_files = 'CoreCode/Classes/DeadtimeTimer/**/*.h'
   end
   
   s.subspec 'Device' do |device|
       device.source_files = 'CoreCode/Classes/Device/**/*'
       device.public_header_files = 'CoreCode/Classes/Device/**/*.h'
       device.dependency 'CoreCode/Keychain'
       device.dependency 'CoreCode/String'
       device.dependency 'CoreCode/Safe'
   end
   
   s.subspec 'Dictionary' do |dictionary|
       dictionary.source_files = 'CoreCode/Classes/Dictionary/**/*'
       dictionary.public_header_files = 'CoreCode/Classes/Dictionary/**/*.h'
   end
   
   s.subspec 'FileUtility' do |fileUtility|
       fileUtility.source_files = 'CoreCode/Classes/FileUtility/**/*'
       fileUtility.public_header_files = 'CoreCode/Classes/FileUtility/**/*.h'
   end
   
   s.subspec 'Image' do |image|
       image.source_files = 'CoreCode/Classes/Image/**/*'
       image.public_header_files = 'CoreCode/Classes/Image/**/*.h'
   end
   
   s.subspec 'ImageLoader' do |imageLoader|
       imageLoader.source_files = 'CoreCode/Classes/ImageLoader/**/*'
       imageLoader.public_header_files = 'CoreCode/Classes/ImageLoader/**/*.h'
   end
   
   s.subspec 'Keychain' do |keychain|
       keychain.source_files = 'CoreCode/Classes/Keychain/**/*'
       keychain.public_header_files = 'CoreCode/Classes/Keychain/**/*.h'
   end
   
   s.subspec 'LBS' do |lBS|
       lBS.source_files = 'CoreCode/Classes/LBS/**/*'
       lBS.public_header_files = 'CoreCode/Classes/LBS/**/*.h'
       lBS.dependency 'ReactiveObjC'
   end
   
   s.subspec 'Notification' do |notification|
       notification.source_files = 'CoreCode/Classes/Notification/**/*'
       notification.public_header_files = 'CoreCode/Classes/Notification/**/*.h'
       notification.dependency 'CoreCode/Safe'
       notification.dependency 'CoreCode/Alert'
   end
   
   s.subspec 'NSNumber' do |number|
       number.source_files = 'CoreCode/Classes/NSNumber/**/*'
       number.public_header_files = 'CoreCode/Classes/NSNumber/**/*.h'
       number.dependency 'CoreCode/Safe'
       number.dependency 'CoreCode/String'
   end
   
   s.subspec 'Runtime' do |runtime|
       runtime.source_files = 'CoreCode/Classes/Runtime/**/*'
       runtime.public_header_files = 'CoreCode/Classes/Runtime/**/*.h'
   end
   
   s.subspec 'Safe' do |safe|
       safe.source_files = 'CoreCode/Classes/Safe/**/*'
       safe.public_header_files = 'CoreCode/Classes/Safe/**/*.h'
   end
   
   s.subspec 'Screen' do |screen|
       screen.source_files = 'CoreCode/Classes/Screen/**/*'
       screen.public_header_files = 'CoreCode/Classes/Screen/**/*.h'
   end
   
   s.subspec 'ScrollView' do |scrollView|
       scrollView.source_files = 'CoreCode/Classes/ScrollView/**/*'
       scrollView.public_header_files = 'CoreCode/Classes/ScrollView/**/*.h'
   end
   
   s.subspec 'String' do |string|
       string.source_files = 'CoreCode/Classes/String/**/*'
       string.public_header_files = 'CoreCode/Classes/String/**/*.h'
       string.dependency 'CoreCode/CoreJSONUtil'
   end
   
   s.subspec 'UIViewControllerExtension' do |controllerExtension|
       controllerExtension.source_files = 'CoreCode/Classes/UIViewControllerExtension/**/*'
       controllerExtension.public_header_files = 'CoreCode/Classes/UIViewControllerExtension/**/*.h'
       controllerExtension.dependency 'CoreCode/Runtime'
       controllerExtension.dependency 'CoreCode/Image'
       controllerExtension.dependency 'CoreCode/UIViewExtension'
   end
   
   s.subspec 'UIViewExtension' do |viewExtension|
       viewExtension.source_files = 'CoreCode/Classes/UIViewExtension/**/*'
       viewExtension.public_header_files = 'CoreCode/Classes/UIViewExtension/**/*.h'
       viewExtension.dependency 'CoreCode/Runtime'
       viewExtension.dependency 'MBProgressHUD'
   end
   
   s.subspec 'UserDefault' do |userDefault|
       userDefault.source_files = 'CoreCode/Classes/UserDefault/**/*'
       userDefault.public_header_files = 'CoreCode/Classes/UserDefault/**/*.h'
   end
   
   s.subspec 'Validation' do |validation|
       validation.source_files = 'CoreCode/Classes/Validation/**/*'
       validation.public_header_files = 'CoreCode/Classes/Validation/**/*.h'
   end
   
end
